monitoring-tools-ux

(0 reviews)

Update Incident

/{businessId}/troubleTicket/{id}

[PATCH]

Update incident details in Salesforce from Zabbix.

URL
https://[localhost]:[port]/monitoring-tools-ux/v1/{businessId}/troubleTicket/{id}
Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, HN, CR, DO etc..) identifying the business unit.
Expected: CW,BO,SA,SE,SX,MF,CO,HN,CR,DO,SV,GT
Y
idstringIncident NumberY
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request syntax: correlationId: uuid:cwc--, example: correlationId: f058ebd6-02f7-4d3f-942e-904344e8cde5:cwc--qacarepc
Y
Salesforce tenants
SF Environment to ConnectSF Instance
QAcwc--qacarepc
UATcwc--uatsfdc
Productioncwc--prod
Body Definitions
nametypedescriptionrequired
@typestringDefault: TroubleTicketY
namestringName of the incidentY
descriptionstringDescription of incidentY
ticketTypestringType of incident, Pass RecordType for Incident and Case Default:incident-caseY
externalIdstringPass RecordTypeId of Incident and case in Salesforce Ex: 01280000000AqtFAAS-01234000000GI2LAAWY
prioritystringPriority of incident. Allowed Values:Critical, High, Medium, Low, PlanningY
severitystringSeverity of incident. Allowed Values: Critical, High, Medium, Low, PlanningY
statusstringStatus of Ticket, Allowed Values: acknowledged,held,inProgress,pending,resolved,closed,cancelledY
channel.idstringDefault: For Zabbix -> Zabbix, ToolMaster -> ToolMasterY
channel.namestringDefault: For Zabbix -> Zabbix, ToolMaster -> ToolMasterY
channel.@typestringDefault: ChannelRefY
note[].textstringValue should be in format -Y
note[].@typestringDefault: NoteY
relatedParty[].idstringSalesforce ObjectID of AccountY
relatedParty[].namestringSalesforce ObjectID of ContactY
relatedParty[].rolestringDefault: UserY
relatedEntity[].idstringDefalut: 'sf'Y
relatedEntity[].rolestringDefault: MonitoringTicketY
relatedEntity[].namestringDefault: InstalledSoftwareY
relatedEntity[].@referredTypestringDefault: LogicalResourceY
relatedEntity[].idstringSalesforce ObjectId of Asset, please repeat the object based on assetsY
relatedEntity[].rolestringDefault: MonitoringTicketY
relatedEntity[].namestringDefault: AssetIdY
relatedEntity[].@referredTypestringDefault: TroubleTicketY
troubleTicketCharacteristic[].namestringname of the characteristicY
troubleTicketCharacteristic[].valuestringvalue of characteristicY
troubleTicketRelationship[].idstringCase IdY
troubleTicketRelationship[].namestringCase NameY
troubleTicketRelationship[].@typestringDefault: TroubleTicketRelationshipY
attachment.descriptionstringA narrative text describing the content of the attachmentN
attachment.@typestringWhen sub-classing, this defines the sub-class entity name. Defalut:AttachmentN
attachment.mimeTypestringType of attachmentN
attachment.namestringName of the attachmentN
attachment.contentstringContent of attachment in base64N
Characteristics Name
characteristic nametypedescriptionrequired
AffectedDatestringThe "affected date" specifies when the issue that caused the incident actually happenedN
AttributedstringAvalableValues-C&W, C&W Human Error, C&W Implementation, C&W Inside Plant, C&W Maintenance Window, C&W Outside Plant, Carrier, Customer, Force Majeure, Provider, Tier 1 Support, Tier 2 Support, Tier 3 SupportN
caseReasonnumberThe reason for which case was created. Available Values- Service Alarmed, Service Down, Intermittencies and/or Latencies, OtherY
causestringIssue of the Ticket "Router issue"N
FailureLocationstringPlace or reason where failure occured AvailableValues-Customer Premises, Datacenter, External Provider, International Trunk, Last Mile, National Trunk, Node(Core)N
SymptomstringBehaviour or alerets on the device. For Example: All lights are green colour, BlinkingN
TypeOfActionstringThis describes Proactive or Reactive. Availablevalues-Proactive or ReactiveY
CatagorystringType of incident Category. Security Policy - Access NOT Authorized,Abuse - General, Abuse - Copyright, Abuse - Spam, Abuse - Dos and DDoS Attacks, Abuse - Bruteforce AttacksN
FailureClassstringThis is the classifications of various reasons for failures caused in the Incident. Salesforce ObjectID "0ny79000000KyqlAAC"N
FailureCodestringThis is the classification code of various reasons for failures caused in the Incident Salesforce ObjectID "0ab56000000KyqlBRC"N
OwnerIdstringSalesforce Object Id of User, Group. These ids will be retrieved by Toolmaster from Salesforce using Analytics query and send it to ESB while creating trouble ticket "0qc73000000KyqlFFH"N
vendorstringVendor of the Asset example: HuaweiN
DownTimeStartDateAndTimestringThis describes start of down timeN
DownTimeEndDateAndTimestringThis describes end of down timeN
isSecurityIncidentstringBoolean value (true/false)N
isMajorIncidentstringBoolean value (true/false)Y
Sample Request
{
  "status": "closed",
  "note": [
    {
    "id": "0y4B0000007NgHGDGH",
      "text": "This is quite important, please approach me as soon as possible-APPTNOTE",
      "@type": "Note"
    }
  ],
  "relatedEntity": [
    {
        "id": "sf",
        "role": "MonitoringTicket",
                "name":"InstalledSoftware",
        "@referredType": "LogicalResource"
    },
    {
        "id": "0tA8B0000004NgGUAU", // Salesforce ObjectId of Asset
        "role": "MonitoringTicket",
                "name":"AssetId",
        "@referredType": "TroubleTicket"
    },
    {
        "id": "0y4B0000007NgHGDGH",// Salesforce ObjectId of Asset
        "role": "MonitoringTicket",
        "name":"AssetId",
        "@referredType": "TroubleTicket"
    }
],
  "troubleTicketCharacteristic":[
    {
      "name":"Attributed",
      "value":"C&W Outside Plant"
    },
    {
      "name":"OwnerId",
      "value":"Service Down"
    },
    {
      "name":"caseReason",
      "value":"Service Down"
    },
    {
      "name":"cause",
      "value":"router issue"
    },
    {
      "name":"FailureLocation",
      "value":"Datacenter"
    },
    {
      "name":"ResolvedById",
      "value":"Security Policy - Access NOT Authorized"
    },
    {
      "name":"ResolvedBy",
      "value":"Security Policy"
    },
    {
      "name":"isEscalated",
      "value":"HUAWEI"
    },
    {
      "name":"DownTime",
      "value":"23-04-2024"
    },
    {
      "name":"DownTimeCode",
      "value":"23-04-2024"
    },
    {
      "name":"DownTimeEndDateAndTime",
      "value":"04-06-2024"
    },
    {
      "name":"DownTimeStartDateAndTime",
      "value":"03-08-2023"
    },
    {
      "name":"isSecurityIncident",
      "value":"false"
    },
    {
      "name":"isMajorIncident",
      "value":"false"
    }
  ],
  "troubleTicketRelationship": [

      {
        "id": "50005000008tu2GAAQ",// Case ObjectId in salesforce
      "@type": "TroubleTicketRelationship"
      },
      {
        "id": "50008000008tu2YTTHQ",// Case ObjectId in salesforce
      "@type": "TroubleTicketRelationship"
      }
  ],
"@type": "TroubleTicket",
  "attachment": [
    {
      "description": "Modem Signals Snapshot",
      "mimeType": "image/png",
      "name": "ModemImage",
      "content": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR42mP4z8AAAAMBAQD3A0FDAAAAAElFTkSuQmCC", //encoded base64 content of the attachment
      "@type": "Attachment"
    }
  ]
}
Sample Response
{
  "status": "Closed",
  "note": [
    {
    "id": "0y4B0000007NgHGDGH",
      "text": "This is quite important, please approach me as soon as possible-APPTNOTE",
      "@type": "Note"
    }
  ],
  "relatedEntity": [
    {
        "id": "sf",
        "role": "MonitoringTicket",
                "name":"InstalledSoftware",
        "@referredType": "LogicalResource"
    },
    {
        "id": "0tA8B0000004NgGUAU", // Salesforce ObjectId of Asset
        "role": "MonitoringTicket",
                "name":"AssetId",
        "@referredType": "TroubleTicket"
    },
    {
        "id": "0y4B0000007NgHGDGH",// Salesforce ObjectId of Asset
        "role": "MonitoringTicket",
        "name":"AssetId",
        "@referredType": "TroubleTicket"
    }
],
  "troubleTicketCharacteristic":[
    {
      "name":"Attributed",
      "value":"C&W Outside Plant"
    },
    {
      "name":"OwnerId",
      "value":"Service Down"
    },
    {
      "name":"caseReason",
      "value":"Service Down"
    },
    {
      "name":"cause",
      "value":"router issue"
    },
    {
      "name":"FailureLocation",
      "value":"Datacenter"
    },
    {
      "name":"ResolvedById",
      "value":"Security Policy - Access NOT Authorized"
    },
    {
      "name":"ResolvedBy",
      "value":"Security Policy"
    },
    {
      "name":"isEscalated",
      "value":"HUAWEI"
    },
    {
      "name":"DownTime",
      "value":"23-04-2024"
    },
    {
      "name":"DownTimeCode",
      "value":"23-04-2024"
    },
    {
      "name":"DownTimeEndDateAndTime",
      "value":"04-06-2024"
    },
    {
      "name":"DownTimeStartDateAndTime",
      "value":"03-08-2023"
    },
    {
      "name":"isSecurityIncident",
      "value":"false"
    },
    {
      "name":"isMajorIncident",
      "value":"false"
    }
  ],
  "troubleTicketRelationship": [

      {
        "id": "50005000008tu2GAAQ",// Case ObjectId in salesforce
      "@type": "TroubleTicketRelationship"
      },
      {
        "id": "50008000008tu2YTTHQ",// Case ObjectId in salesforce
      "@type": "TroubleTicketRelationship"
      }
  ],
"@type": "TroubleTicket",
  "attachment": [
    {
      "description": "Modem Signals Snapshot",
      "mimeType": "image/png",
      "name": "ModemImage",
      "content": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR42mP4z8AAAAMBAQD3A0FDAAAAAElFTkSuQmCC", //encoded base64 content of the attachment
      "@type": "Attachment"
    }
  ]
}

Reviews